-- GENERATED SPELL FOR [Plague Beast] --


function spell0_16034(pUnit, Event) --@Plague Splash,n/a--
pUnit:FullCastSpellOnTarget(54780,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16034', 15000, 1)
end

function spell1_16034(pUnit, Event) --@Plague Splash,n/a--
pUnit:FullCastSpellOnTarget(56538,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16034', 15000, 1)
end

function Sorts_16034(pUnit, Event)
local choix_sorts_16034 = math.random(0, 1)
if choix_sorts_16034 == 0 then
pUnit:RegisterEvent('spell0_16034', 1, 1)
end
if choix_sorts_16034 == 1 then
pUnit:RegisterEvent('spell1_16034', 1, 1)
end
end

function mob16034_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16034', math.random(1500, 3000), 1)
end

function mob16034_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16034_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16034_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16034, 1, 'mob16034_Action')
RegisterUnitEvent(16034, 2, 'mob16034_Leave')
RegisterUnitEvent(16034, 3, 'mob16034_Kill')
RegisterUnitEvent(16034, 4, 'mob16034_Die')
